<template> 
    <el-carousel :interval="4000" type="card" height="200px">
        <el-carousel-item v-for="item in carouseData" :key="item">
            <img :src="item.url" alt=""/>
        </el-carousel-item>
    </el-carousel>
</template>

<script setup>

const carouseData = [
    {url: require("@/assets/1.jpg")},
    {url: require("@/assets/2.jpg")},
    {url: require("@/assets/3.jpg")},
    {url: require("@/assets/5.jpg")},
    {url: require("@/assets/6.jpg")},
]
</script>

<style scoped>
.demonstration {
  color: var(--el-text-color-secondary);
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>